package com.ruoyi.school.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

public interface MinioService {
    String putObject(MultipartFile file, String bucketName, String fileType);

    void makeBucket(String bucketName);

    boolean removeObject(String bucketName, String objectName);

    boolean removeListObject(String bucketName, List<String> objectNameList);

    List<String> listObjectNames(String bucketName);

    List<String> listBucketName();

    boolean removeBucket(String bucketName);

    InputStream downloadObject(String bucketName, String objectName);
}
